/**
 * Copyright (C), 2020, 安徽贝慕信息科技有限公司
 * FileName: DealerUserDTO
 * Author:   Allen
 * Date:     2020/8/26 20:32
 * Description: 商家/系统两用登录用户实体
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bim.marvel.openapi.client.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 〈商家/系统两用登录用户实体〉
 *
 * @author Allen
 * @date 2020/8/26
 * @since 1.0.0
 */
@Getter
@Setter
@ToString
@ApiModel(value = "DealerUserDTO", description = "商家/系统两用登录用户实体")
public class DealerUserDTO extends BaseDTO implements Serializable {
    /**
     * 商家申请的用户账号-可系统生成也可用户输入
     */
    @ApiModelProperty(value = "商家申请的用户账号", name = "userId", example = "163614564654")
    private String userId;

    /**
     * 用户名称（中文）
     */
    @ApiModelProperty(value = "用户名称", name = "userName", example = "张三", position = 1)
    private String userName;

    /**
     * 登录名称(英文字母或数字)
     */
    @ApiModelProperty(value = "登录名称", name = "loginName", example = "13695467821", position = 2)
    private String loginName;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", name = "phone", example = "13695467821", position = 3)
    private String phone;
    /**
     * 用户类型(0:系统用户-用户审核商家信息，1:商家用户-商家登录账号)
     */
    @ApiModelProperty(value = "用户类型", name = "userType", example = "0", position = 4)
    private Long userType;
    /**
     * 用户邮箱
     */
    @ApiModelProperty(value = "用户邮箱", name = "email", example = "email@xueying.com", position = 5)
    private String email;

    /**
     * 是否禁用
     */
    @ApiModelProperty(value = "是否禁用", name = "disabled", example = "false", position = 6)
    private Boolean disabled;

    /**
     * 所属企业编号(当为系统用户时，此项为空)
     */
    @ApiModelProperty(value = "所属企业编号", name = "companyCode", example = "20", position = 7)
    private String companyCode;
}
